package com.goktech.olala.server.dao.customer;

import com.goktech.olala.server.pojo.customer.Login;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoginMapper {
    int insert(Login record);

    List<Login> selectAll();

    Login selectUserAndPassword(@Param("loginName") String userName, @Param("password") String password);

    Login selectRegister(String email);

    int updateEmail(@Param("email") String email,@Param("loginName") String loginName);
}